using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WqLunTan.Models.DataBase
{
    /// <summary>
    /// 帖子回复的内容
    /// </summary>
    [Table("post_reply")]
    public class post_reply : BaseUpdateEntity
    {
        /// <summary>
        /// 贴子标题的id
        /// </summary>
        public Guid post_tid { get; set; }

        /// <summary>
        /// 贴子楼层内容的id
        /// </summary>
        public Guid post_cid { get; set; }

        /// <summary>
        /// 添加人的用户id
        /// </summary>
        public Guid uid { get; set; }

        public bool is_show { get; set; }

        /// <summary>
        /// 添加人的用户昵称
        /// </summary>
        [MaxLength(20)]
        [Required(AllowEmptyStrings = true)]
        public string uname { get; set; } = string.Empty;

        [MaxLength(255)]
        [Required(AllowEmptyStrings = true)]
        public string content { get; set; } = string.Empty;
    }
}
